home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
apidev
/
netdmo.exe
/
SERVERS.FRM
< prev
next >
Wrap
Text File
|
1993-12-10
|
13KB
|
610 lines
Version 1.00
BEGIN Form Servers
AutoRedraw = 0
BackColor = QBColor(1)
BorderStyle = 1
Caption = "Attached Servers"
ControlBox = -1
Enabled = -1
ForeColor = QBColor(7)
Height = Char(19)
Left = Char(9)
MaxButton = -1
MinButton = -1
MousePointer = 0
Tag = ""
Top = Char(2)
Visible = -1
Width = Char(63)
WindowState = 0
BEGIN Label Label1
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = "Server Number"
DragMode = 0
Enabled = -1
ForeColor = QBColor(15)
Height = Char(1)
Left = Char(1)
MousePointer = 0
TabIndex = 1
Tag = ""
Top = Char(1)
Visible = -1
Width = Char(14)
END
BEGIN CommandButton Command1
BackColor = QBColor(7)
Cancel = 0
Caption = "OK"
Default = 0
DragMode = 0
Enabled = -1
Height = Char(3)
Left = Char(24)
MousePointer = 0
TabIndex = 0
TabStop = -1
Tag = ""
Top = Char(13)
Visible = -1
Width = Char(15)
END
BEGIN Label Label2
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = "Connection ID "
DragMode = 0
Enabled = -1
ForeColor = QBColor(15)
Height = Char(1)
Left = Char(19)
MousePointer = 0
TabIndex = 2
Tag = ""
Top = Char(1)
Visible = -1
Width = Char(13)
END
BEGIN Label Label3
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = "Server Name"
DragMode = 0
Enabled = -1
ForeColor = QBColor(15)
Height = Char(1)
Left = Char(37)
MousePointer = 0
TabIndex = 3
Tag = ""
Top = Char(1)
Visible = -1
Width = Char(13)
END
BEGIN Label s1
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(4)
MousePointer = 0
TabIndex = 4
Tag = ""
Top = Char(3)
Visible = -1
Width = Char(5)
END
BEGIN Label s2
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(4)
MousePointer = 0
TabIndex = 5
Tag = ""
Top = Char(4)
Visible = -1
Width = Char(5)
END
BEGIN Label s3
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(4)
MousePointer = 0
TabIndex = 6
Tag = ""
Top = Char(5)
Visible = -1
Width = Char(5)
END
BEGIN Label s4
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(4)
MousePointer = 0
TabIndex = 7
Tag = ""
Top = Char(6)
Visible = -1
Width = Char(5)
END
BEGIN Label s5
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(4)
MousePointer = 0
TabIndex = 8
Tag = ""
Top = Char(7)
Visible = -1
Width = Char(5)
END
BEGIN Label s6
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(4)
MousePointer = 0
TabIndex = 9
Tag = ""
Top = Char(8)
Visible = -1
Width = Char(5)
END
BEGIN Label s7
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(4)
MousePointer = 0
TabIndex = 10
Tag = ""
Top = Char(9)
Visible = -1
Width = Char(5)
END
BEGIN Label s8
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(4)
MousePointer = 0
TabIndex = 11
Tag = ""
Top = Char(10)
Visible = -1
Width = Char(5)
END
BEGIN Label u1
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(23)
MousePointer = 0
TabIndex = 12
Tag = ""
Top = Char(3)
Visible = -1
Width = Char(5)
END
BEGIN Label u2
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(23)
MousePointer = 0
TabIndex = 13
Tag = ""
Top = Char(4)
Visible = -1
Width = Char(5)
END
BEGIN Label u3
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(23)
MousePointer = 0
TabIndex = 14
Tag = ""
Top = Char(5)
Visible = -1
Width = Char(5)
END
BEGIN Label u4
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(23)
MousePointer = 0
TabIndex = 15
Tag = ""
Top = Char(6)
Visible = -1
Width = Char(5)
END
BEGIN Label u5
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(23)
MousePointer = 0
TabIndex = 16
Tag = ""
Top = Char(7)
Visible = -1
Width = Char(5)
END
BEGIN Label u6
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(23)
MousePointer = 0
TabIndex = 17
Tag = ""
Top = Char(8)
Visible = -1
Width = Char(5)
END
BEGIN Label u7
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(23)
MousePointer = 0
TabIndex = 18
Tag = ""
Top = Char(9)
Visible = -1
Width = Char(5)
END
BEGIN Label u8
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(23)
MousePointer = 0
TabIndex = 19
Tag = ""
Top = Char(10)
Visible = -1
Width = Char(5)
END
BEGIN Label Serv1
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(38)
MousePointer = 0
TabIndex = 20
Tag = ""
Top = Char(3)
Visible = -1
Width = Char(22)
END
BEGIN Label Serv2
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(38)
MousePointer = 0
TabIndex = 21
Tag = ""
Top = Char(4)
Visible = -1
Width = Char(22)
END
BEGIN Label Serv3
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(38)
MousePointer = 0
TabIndex = 22
Tag = ""
Top = Char(5)
Visible = -1
Width = Char(22)
END
BEGIN Label Serv4
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(38)
MousePointer = 0
TabIndex = 26
Tag = ""
Top = Char(6)
Visible = -1
Width = Char(22)
END
BEGIN Label Serv5
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(38)
MousePointer = 0
TabIndex = 27
Tag = ""
Top = Char(7)
Visible = -1
Width = Char(22)
END
BEGIN Label Serv6
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(38)
MousePointer = 0
TabIndex = 23
Tag = ""
Top = Char(8)
Visible = -1
Width = Char(22)
END
BEGIN Label Serv7
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(38)
MousePointer = 0
TabIndex = 24
Tag = ""
Top = Char(9)
Visible = -1
Width = Char(22)
END
BEGIN Label Serv8
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(38)
MousePointer = 0
TabIndex = 25
Tag = ""
Top = Char(10)
Visible = -1
Width = Char(22)
END
END
'$FORM Netdemo
TYPE SconInfo
conID1 AS INTEGER
conID2 AS INTEGER
conID3 AS INTEGER
conID4 AS INTEGER
conID5 AS INTEGER
conID6 AS INTEGER
conID7 AS INTEGER
conID8 AS INTEGER
server1 AS STRING * 50
server2 AS STRING * 50
server3 AS STRING * 50
server4 AS STRING * 50
server5 AS STRING * 50
server6 AS STRING * 50
server7 AS STRING * 50
server8 AS STRING * 50
END TYPE
DECLARE SUB GetServerConnectionInfo (Serv AS SconInfo)
SUB Command1_Click ()
Servers.HIDE
Netdemo.SHOW
END SUB
SUB Form_Load ()
DIM Serv AS SconInfo
CALL GetServerConnectionInfo(Serv) 'Call the Procedure
server1$ = RTRIM$(Serv.server1)
server2$ = RTRIM$(Serv.server2)
server3$ = RTRIM$(Serv.server3)
server4$ = RTRIM$(Serv.server4)
server5$ = RTRIM$(Serv.server5)
server6$ = RTRIM$(Serv.server6)
server7$ = RTRIM$(Serv.server7)
server8$ = RTRIM$(Serv.server8)
IF Serv.conID1 <> 255 THEN
S1.Caption = " 1"
u1.Caption = STR$(Serv.conID1)
Serv1.Caption = server1$
END IF
IF Serv.conID2 <> 255 THEN
S2.Caption = " 2"
u2.Caption = STR$(Serv.conID2)
Serv2.Caption = server2$
END IF
IF Serv.conID3 <> 255 THEN
S3.Caption = " 3"
u3.Caption = STR$(Serv.conID3)
Serv3.Caption = server3$
END IF
IF Serv.conID4 <> 255 THEN
S4.Caption = " 4"
u4.Caption = STR$(Serv.conID4)
Serv4.Caption = server4$
END IF
IF Serv.conID5 <> 255 THEN
S5.Caption = " 5"
u5.Caption = STR$(Serv.conID5)
Serv5.Caption = server5$
END IF
IF Serv.conID6 <> 255 THEN
S6.Caption = " 6"
u6.Caption = STR$(Serv.conID6)
Serv6.Caption = server6$
END IF
IF Serv.conID7 <> 255 THEN
S7.Caption = " 7"
u7.Caption = STR$(Serv.conID7)
Serv7.Caption = server7$
END IF
IF Serv.conID8 <> 255 THEN
S8.Caption = " 8"
u8.Caption = STR$(Serv.conID8)
Serv8.Caption = server8$
END IF
END SUB
SUB Form_Unload (Cancel AS INTEGER)
Netdemo.SHOW
END SUB